/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package management;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.*;
import net.miginfocom.swing.MigLayout;

/**
 *
 * @author buer
 */
public class ManagementLayoutFactory extends JPanel {

    public ManagementLayoutFactory() {
        jp = new JPanel(new MigLayout());
        jp.setSize(600,480);
    }

    public JPanel createLayout() {
        JPanelWordTable jPanelWordTable = new JPanelWordTable();
        JPanelTool jPanelTool = new JPanelTool(jPanelWordTable);
        //JPanelList jPanelList = new JPanelList(jPanelTool);
   
        /*JPanel jptemp=new JPanel(new MigLayout());
        jptemp.add(jPanelTool,"wrap");
        jp.add(jptemp,"gaptop 10");*/
        //jptemp.setBounds(10,10,600,50);
        jp.add(jPanelTool, "wrap");
        
        JPanel jpm = new JPanel(new MigLayout());
        //jpm.add(jPanelList);
        jpm.add(jPanelWordTable);
        jPanelWordTable.setBorder(null);
        //jp.add(jpm, "wrap");
        jp.add(jpm);
        //jp.add(new JPanelStatus());

        return jp;
    }
    private JPanel jp;
}
